package org.softmed.rest.editor;

import java.io.File;

import javax.swing.UIManager;

import org.softmed.filehandling.FileUtil;
import org.softmed.rest.editor.config.Application;

import com.thoughtworks.xstream.XStream;

public class EditorMain {

	/**
	 * @param args
	 * @throws Throwable
	 */
	public static void main(String[] args) throws Throwable {

		UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

		// XStream streamer = new XStream();
		// streamer.alias("application", Application.class);
		// streamer.aliasField("relative-uri", Application.class,
		// "relativeUri");
		// streamer.useAttributeFor(Application.class, "id");
		// streamer.useAttributeFor(Application.class, "active");
		// streamer.useAttributeFor(Application.class, "uri");

		// String xml =
		// "<application active=\"true\" id=\"2\" uri=\"http://localhost:8090/admin/rest/applications/2\">\n<modules item-count=\"1\"/>\n</application>"
		// ;
		// String xml = "<application active=\"true\" />";
		//
		// Application app = (Application) streamer.fromXML(xml);
		// System.out.println(app.getName());

		new EditorPanel();

	}
}
